package com.dy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/4/16 13:49
 * @Version 1.0 (版本)
 */
@RestController
public class ConfigClientController {
    @Value("${spring.cloud.config.uri}")
    private String uri;
    @Value("${spring.cloud.config.name}")
    private String name;
    @Value("${spring.cloud.config.profile}")
    private String profile;
    @Value("${spring.cloud.config.label}")
    private String label;
    @Value("${spring.application.name}")
    private String applicationName;
    @Value("${server.port}")
    private String port;
    @RequestMapping("/config")
    public String configClient(){
        System.out.println("---config-client---");
        return "uri"+uri+" "
                +"name"+name+" "
                +"profile"+profile+" "
                +"label"+label+" "
                +"applicationName"+applicationName+" "
                +"port"+port;
    }
}
